#include "Tooth2.h"
#include "GameUtil.h"

using namespace cocos2d;

Tooth2::Tooth2(void)
{
}


Tooth2::~Tooth2(void)
{
}

bool Tooth2::init(){  
    if (!Tooth::init()) {  
        return false;  
    }  

	// init
	d_creatureSprite->initWithFile("t2.png");

	d_baseHP = 100;
	d_maxHP = d_baseHP * GameUtil::instance()->getSetting()->getHealthBuff();
	d_shootInterval = 20;

	d_animInterval = 10.0;
	d_hpRecoveryRate = 1.0;

	// bullet
	d_bulletSpeed = 100;
	d_bulletDamage = 10;
	d_bulletType = BULLET_TYPE_6;
	d_shootInterval = 400;

    return true;  
}

void Tooth2::shoot(float dt)
{
	d_bulletManager->shoot(this, 0);
}
